Skip to content

Conversation

rachelks
Copy link
Member

Closes #24

Summary

  • Added per-user search history with PostgreSQL persistence and GraphQL operations for recording, retrieving and clearing recent searches.
  • Integrated recent searches into the Discover search field, including keyboard navigation, accessibility support and the ability to reuse previous searches.
  • Preserved existing filters, sorting and URL state when selecting a previous search.
  • Added backend, component and integration tests, and updated the README and AI usage log.

Testing

  • All 202 frontend tests passed.
  • Backend tests passed, including PostgreSQL integration tests.
  • Formatting, lint, typechecking, GraphQL code generation and production build passed.
  • Manually tested the search dropdown and keyboard interactions.

Note: Browser E2E tests were not run locally.

@rachelks rachelks requested a review from a team as a code owner November 13, 2026 20:56
Copy link
Member

@robertky robertky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The search history implementation looks good. It stores the ten most recent distinct searches per simulated user, supports selecting and clearing history, and preserves the existing URL-based search, filters, and sorting. The keyboard interaction, accessibility support, and database tests cover the important cases, including user isolation and concurrent writes. CI is green, and I found no blocking issues.

@robertky robertky merged commit f9de28a into main Nov 14, 2026
3 checks passed
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search history as extra user data
2 participants